package de.freakreactor.fatman;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Properties;

public class Handler {

	ArrayList<Figure> Figures;
	
	Handler() {
		buildObjects();
		createGame();
		gameLoop();
	}
	
	private void gameLoop() {
		
	}
	
	public void buildObjects() {
		// load the settings
		Properties properties = new Properties();
		FileInputStream stream = null;
		try {
			stream = new FileInputStream("settings.properties");
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		try {
			properties.load(stream);
			stream.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		//TODO build all objects
	}
	
	public void createGame() {
		//TODO call all necessary methods of the objects
	}
	
	
	
}
